package com.xy;

/**
 * @author 谢阳
 * @version 1.8.0_131
 * @date 2022/6/21 19:27
 * @description
 */
public class ToyDuck extends Duck{
    @Override
    public void display() {
        System.out.println("玩偶鸭");
    }

    @Override
    public void quack() {
        System.out.println("玩偶鸭不会叫...");
    }

    @Override
    public void swim() {
        System.out.println("玩偶鸭不能游泳");
    }

    @Override
    public void fly() {
        System.out.println("玩偶鸭不能飞翔");
    }
}
